{*
 * @license   GPLv3 Open Source
 *}

{$html->toolbar->title('##Joop questions kits##')}
{$html->toolbar->deleteList()}

{$html->toolbar->popup('add_kit','New kit','new',400,350)}
{$html->toolbar->popup('add_questkit','Add question','new',400,450)}

<div style="float:left; width: 10%;">
	{include file='joopport/links.tpl'}
</div>

<div style="float:right; width: 90%;">
	<form name="adminForm" method="POST">
		<input type="hidden" name="checked" value="0"/>
		<input type="hidden" name="agora_task" value="joopport"/>
		<input type="hidden" name="task" value=""/>
		<input type="hidden" name="page" value="qkit"/>
		<input type="hidden" name="option" value="com_agora"/>
		<input type="hidden" name="boxchecked" value="0"/>
<fieldset>
		<legend>##Joop questions kits##</legend>
		<table class="adminlist">
			<thead>
				<tr>
					<th width="20">
						<input type="checkbox" name="toggle" value="" onclick="checkAll({$licenses|@count});" />
					</th>
					<th>##Id##</th>
					<th>##Name##</th>
					<th>##Questions##</th>
				</tr>
			</thead>
			<tfoot>
				<tr><td colspan="4">{$pagination->getListFooter()}</td></tr>
			</tfoot>
			<tbody>
				{foreach from=$qkits item=qkit key=num}
				<tr>
					<td>{$html->jhtml('grid.id', $num, $qkit.id)}</td>
					<td>{$qkit.id}</td>
					<td>{$qkit.group_name}</td>
					<td>{$qkit.subject}</td>
				</tr>
				{foreachelse}
				<tr>
					<td colspan="4" align="center">##No questions##</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		</fieldset>
	</form>
</div>